Skip to content

Conversation

@SaishGhatol
Copy link

Related Issue

Fixes #173

Description

Added a dedicated search button to the navbar for improved accessibility and user experience.
Integrated with existing Algolia configuration.

Changes Made

Updated docusaurus.config.ts to include a search button in the navbar.
Configured Algolia search.

// docusaurus.config.ts
themeConfig: {
  navbar: {
    items: [
      {
        type: 'search',
        position: 'right',
      },
    ],
  },
  algolia: {
    appId: 'YOUR_APP_ID',
    apiKey: 'YOUR_SEARCH_API_KEY',
    indexName: 'YOUR_INDEX_NAME',
  },
}

Type of PR

Feature enhancement

Screenshot

image

@netlify
Copy link

netlify bot commented Aug 11, 2025

Deploy Preview for learnhub5 failed.

Name Link
🔨 Latest commit aaae313
🔍 Latest deploy log https://app.netlify.com/projects/learnhub5/deploys/68a2cb87376aea0008e6dd3a

@vercel
Copy link

vercel bot commented Aug 11, 2025

@SaishGhatol is attempting to deploy a commit to the Souvik's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible.). If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@vercel
Copy link

vercel bot commented Aug 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
learn-hub Error Error Aug 18, 2025 6:44am

@souvikpramanikgit
Copy link
Owner

Show the video of how the search works @SaishGhatol

@SaishGhatol
Copy link
Author

It doesn't work as :
algolia: {
appId: 'YOUR_APP_ID',
apiKey: 'YOUR_SEARCH_API_KEY',
indexName: 'YOUR_INDEX_NAME',
}, is not working while build, it can be done with the env variables

image

@SaishGhatol
Copy link
Author

Are you going to merge it or not ?

@souvikpramanikgit
Copy link
Owner

There is an error in deploying, solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Add a search bar

2 participants